package info.rflow.graph.model;

/**
 * @author Holger Brandl
 */
public class DataEdge {

    private DataPin source;
    private DataPin target;


    public DataEdge(DataPin source, DataPin target) {
        assert source != null;
        assert target != null;

        this.source = source;
        this.target = target;
    }


    public DataPin getSource() {
        return source;
    }


    public DataPin getTarget() {
        return target;
    }


    public String toString() {
        return source.toString() + "-->" + target.toString();
    }
}
